﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Administrator_MasterPage : System.Web.UI.MasterPage
{
   // BizHistoryVisited history = new BizHistoryVisited();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] == null || Session["username"] == "")
        {
            Response.Redirect("~/Administrator/Login.aspx");
        }
    }
    protected void logobaner_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module Logoes -Banner  ", DateTime.Now, "1");
        //Response.Redirect("Logoes.aspx");
    }
    protected void footer_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module chân trang", DateTime.Now, "1");
        //Response.Redirect("footer.aspx");

    }
    protected void town_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module thành phố", DateTime.Now, "1");
        //Response.Redirect("town.aspx");
    }
    protected void EmailTemplate_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module định dạng Email", DateTime.Now, "1");
        //Response.Redirect("EmailTemplate.aspx");
    }


    protected void moduletrangchu_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module trang chủ", DateTime.Now, "1");
        //Response.Redirect("Module.aspx");
    }
    protected void Administrator_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module quản trị viên", DateTime.Now, "1");
        //Response.Redirect("Administrator.aspx");
    }
    protected void News_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module tin tức", DateTime.Now, "1");
        //Response.Redirect("News.aspx");
    }
    protected void listevent_click(object sender, EventArgs e)
    {
        //string ipaddress = HttpContext.Current.Request.UserHostAddress;
        //history.tblHistoryVisitedInsert(Session["username"].ToString(), ipaddress, "Truy cập module danh sách sự kiện", DateTime.Now, "1");
        //Response.Redirect("event.aspx");
    }
    


}
